home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1997 December / Internet_Info_CD-ROM_Walnut_Creek_December_1997.iso / ietf / urn / urn-archives / urn-ietf.archive.9608 / 000013_owner-urn-ietf _Thu Aug 15 12:04:51 1996.msg < prev    next >
Internet Message Format  |  1997-02-19  |  2KB

  1. Received: (from daemon@localhost) by services.bunyip.com (8.6.10/8.6.9) id MAA07933 for urn-ietf-out; Thu, 15 Aug 1996 12:04:51 -0400
  2. Received: from mocha.bunyip.com (mocha.Bunyip.Com [192.197.208.1]) by services.bunyip.com (8.6.10/8.6.9) with SMTP id MAA07920 for <urn-ietf@services.bunyip.com>; Thu, 15 Aug 1996 12:04:49 -0400
  3. Received: from weeble.lut.ac.uk by mocha.bunyip.com with SMTP (5.65a/IDA-1.4.2b/CC-Guru-2b)
  4.         id AA12540  (mail destined for urn-ietf@services.bunyip.com); Thu, 15 Aug 96 12:04:46 -0400
  5. Received: from jon by weeble.lut.ac.uk with local (Exim 0.54 #1)
  6.     id E0ur4uC-0000UI-00; Thu, 15 Aug 1996 17:04:20 +0100
  7. Date: Thu, 15 Aug 1996 17:04:19 +0100 (BST)
  8. From: Jon Knight <jon@net.lut.ac.uk>
  9. X-Sender: jon@weeble.lut.ac.uk
  10. To: Ron Daniel <rdaniel@acl.lanl.gov>
  11. Cc: Harald.T.Alvestrand@uninett.no, urn-ietf@bunyip.com
  12. Subject: Re: [URN] nasty rewriting rules
  13. In-Reply-To: <2.2.32.19960815150431.006fbd60@acl.lanl.gov>
  14. Message-Id: <Pine.SUN.3.91.960815170007.23509Y-100000@weeble.lut.ac.uk>
  15. Mime-Version: 1.0
  16. Content-Type: TEXT/PLAIN; charset=US-ASCII
  17. Sender: owner-urn-ietf@services.bunyip.com
  18. Precedence: bulk
  19. Reply-To: Jon Knight <jon@net.lut.ac.uk>
  20. Errors-To: owner-urn-ietf@bunyip.com
  21.  
  22. On Thu, 15 Aug 1996, Ron Daniel wrote:
  23. > One difference is that sed-style regexps use \1 \2 etc. for inserting
  24. > matches in substitution operations, while perl uses $1 $2 etc. 
  25.  
  26. Perl uses \1, \2, etc for substitutions within the regexp.  The $1, $2, 
  27. etc is so that you can use the matched parts of regexp in the following 
  28. code.  See page 104 of "Programming in Perl" (the Camel book) for details.
  29.  
  30. > Perl
  31. > also provides things like \w for matching words, \W for matching non-words,
  32. > etc. that I do not recall being in sed-style regexps. There are, no
  33. > doubt, many smaller differences. For example, in Perl, '.' does not
  34. > match a newline character.
  35.  
  36. This is quite true.  Perl regexp's are a superset of egrep's regexp's and 
  37. so have lots of "nice" extra features (one of the reasons I love Perl so 
  38. much!)
  39.  
  40. Tatty bye,
  41.  
  42. Jim'll
  43.  
  44. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  45. Jon "Jim'll" Knight, Researcher, Sysop and General Dogsbody, Dept. Computer
  46. Studies, Loughborough University of Technology, Leics., ENGLAND.  LE11 3TU.
  47. * I've found I now dream in Perl.  More worryingly, I enjoy those dreams. *
  48.